//Source file: D:\\aaa\\com\\ce\\pms\\renovation\\model\\AbstractChargeItemConfigDO.java

package com.ce.pms.system.renovation.model;

import java.math.BigDecimal;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.ce.pms.charge.model.BusinessCodeDomain;
import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:抽象的费用配置项目 关联数据表:RM_RENOVATE_CHARGE_ITEM_CONFIG
 *
 * @author 燕大为 创建日期：2008-12-16
 */
@Entity
@Table(name = "RM_RENOVATE_CHARGE_ITEM_CONFIG")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "CHARGE_ITEM_CONFIG_TYPE", discriminatorType = DiscriminatorType.STRING)
public class AbstractChargeItemConfigDO implements IDomainObject {

	/**
	 *
	 */
	private static final long serialVersionUID = -2555175030227131619L;

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "RENOVATE_CHARGE_ITEM_CONFIG_ID")
	private Long keyword;

	/**
	 * 交易码
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "BIZ_CODE_ID")
	private BusinessCodeDomain businessCode;

	/**
	 * 描述
	 */
	@Column(name = "DESCRIPTION", length = 80)
	private String description;

	/**
	 * 项目名称
	 */
	@Column(name = "ITEM_NAME", nullable = false, length = 50)
	private String itemName;

	/**
	 * 金额
	 */
	@Column(name = "PRICE", precision = 18, scale = 2, nullable = false)
	private BigDecimal price = new BigDecimal(0.00);

	/**
	 * 状态 001-正常，002-停用
	 */
	@Column(name = "STATE", nullable = false, length = 3)
	private String state;

	/**
	 * 系统信息
	 */
	@Embedded
	@AttributeOverride(name = "sysDate", column = @Column(name = "SYS_DATE"))
	private SysInfo sysInfo;

	/**
	 * @roseuid 49473A9D02EE
	 */
	public AbstractChargeItemConfigDO() {

	}

	public AbstractChargeItemConfigDO(Long keyword) {
		super();
		this.keyword = keyword;
	}

	public BusinessCodeDomain getBusinessCode() {
		return businessCode;
	}

	public void setBusinessCode(BusinessCodeDomain businessCode) {
		this.businessCode = businessCode;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public SysInfo getSysInfo() {
		return sysInfo;
	}

	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}
}
